﻿{extend name="public:base" /}

{block name="css"}
<link href="__ADMIN__/css/style.css" rel="stylesheet">{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post" class="layui-form fairy-form">
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">封面图<!--<br><small class="text-navy">建议尺寸：200px*200px</small>--></label>
                                <div class="col-sm-3">
                                    <input type="file" id="img_file" style="display: none">
                                    <input type="hidden" name="img" id="img" value="{$info['img']|default=''}"/>
                                    <img class="upload-file" onclick="uploadImg('img_file', 'img', 'upload_img')" id="upload_img" src="{$info.img ? getPicture($info.img) : '__ADMIN__/img/uploadBtn.png'}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">视频商场榜<!--<br><small class="text-navy">建议尺寸：200px*200px</small>--></label>
                                <div class="col-sm-3">
                                    <input type="file" id="top_file" style="display: none">
                                    <input type="hidden" name="top_img" id="top" value="{$info['img']|default=''}"/>
                                    <img class="upload-file" onclick="uploadImg('top_file', 'top', 'upload_top_img')" id="upload_top_img" src="{$info.top_img ? getPicture($info.top_img) : '__ADMIN__/img/uploadBtn.png'}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">视频号名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="name" value="{$info.name}" placeholder="请输入视频号名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">店铺名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="shop_name" value="{$info.shop_name}" placeholder="请输入店铺名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">作品数</label>
                                <div class="col-sm-3">
                                    <input type="number" class="form-control" name="video_count" value="{$info.video_count}" placeholder="请输入作品数">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">粉丝数</label>
                                <div class="col-sm-3">
                                    <input type="number" class="form-control" name="fs_count" value="{$info.fs_count}" placeholder="请输入粉丝数">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{:input('id')}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">
                                    保存
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}